﻿using UnityEngine;
using System.Collections;

public class MapManager : MonoBehaviour {

    public GameObject beanPrefab;
    public GameObject[] monsterPrefabs;
    public static int gameState;
    public const int STATE_RUN = 0;
    public const int STATE_PAUSE = 1;
    public const int STATE_END = 2;
    public const int STATE_DIE = 3;

	// Use this for initialization
	void Start () {
        InstantiateBeans ();
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    void InstantiateBeans()
    {
        for (int i = -10; i < 20; i++) 
        {
            for (int j = -15; j < 2; j++)
            {
                Instantiate(beanPrefab, new Vector3(i, j, 0f), Quaternion.identity);
            }
        }
    }

}
